/*
 * @Author: yanyqf
 * @Date: 2020-03-10 17:58:55
 * @LastEditTime: 2020-03-13 16:15:51
 * @Description: file content
 */

export function setTableTpl(_self) {
    const tableTpl = [{
                title: "项目组织",
                dataIndex: "sname",
                key: "code",
                width: '10%'
            },
            {
                title: "项目基本分类",
                dataIndex: "name",
                key: "name",
                width: '10%',
                render(text, record, index) {

                    return ( <div > {
                            _self.setProjectTypeShowCol('sname', record)
                        } </div>
                    )
                }
            },
            {
                title: "指标编码",
                dataIndex: "zcode",
                key: "zcode",
                width: '7%',
                render(text, record, index) {
                    return ( <div > {
                            _self.setIndexExcelShowCol('code', record)
                        } </div>
                    )
                }
            },
            {
                title: "指标名称",
                dataIndex: "zname",
                key: "zname",
                width: '15%',
                render(text, record, index) {

                    return ( < div > {
                            _self.setIndexExcelShowCol('name', record)
                        } </div>)
                    }
                },
                {
                    title: "指标单位",
                    dataIndex: "unit",
                    key: "unit",
                    width: '6%',
                    render(text, record, index) {

                        return ( < div > {
                                _self.setIndexExcelShowCol('unit', record)
                            } </div>)
                        }

                    },
                    {
                        title: "项目基本分类指标汇总",
                        dataIndex: "indexSumNum",
                        key: "indexSumNum",
                        width: '15%',
                        render(text, record, index) {

                            return ( < div > {
                                    _self.setIndexExcelShowCol('indexSumNum', record)
                                } </div>)
                            }
                        },
                        {
                            title: "项目编码",
                            dataIndex: "projectCode",
                            key: "projectCode",
                            width: '14%',
                            render(text, record, index) {

                                return ( <
                                    div > {
                                        _self.setProjectItemCol('scode', record)
                                    } </div>
                                )
                            }
                        },
                        {
                            title: "项目名称",
                            width: '13%',
                            dataIndex: "projectName",
                            key: "projectName",
                            render(text, record, index) {

                                return ( < div > {
                                        _self.setProjectItemCol('sname', record)
                                    } </div>)
                                }
                            },
                            {
                                title: "项目指标汇总",
                                dataIndex: "projectIndexNum",
                                key: "projectIndexNum",
                                width: '10%',
                                render(text, record, index) {

                                    return ( < div > {
                                            _self.setProjectItemCol('projectIndexNum', record)
                                        } </div>)
                                    }
                                },
                            ];
                            return tableTpl
                        }